package com.cxria.pattern.proxy

class GamePlayer implements IGamePlayer {

    private String name = ''

    GamePlayer(String name) {
        this.name = name
    }

    @Override
    void login(String user, String password) {
        println "登陆名为${user}的用户${name}登陆成功"
    }

    @Override
    void killBoss() {
        println "${name}在打怪!"
    }

    @Override
    void upgrade() {
        println "${name}又升了一级"
    }

}
